package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ActentryMapper;
import com.ruoyi.system.domain.Actentry;
import com.ruoyi.system.service.IActentryService;
import com.ruoyi.common.core.text.Convert;

/**
 * 活动报名Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-18
 */
@Service
public class ActentryServiceImpl implements IActentryService 
{
    @Autowired
    private ActentryMapper actentryMapper;

    /**
     * 查询活动报名
     * 
     * @param actentryId 活动报名主键
     * @return 活动报名
     */
    @Override
    public Actentry selectActentryByActentryId(Long actentryId)
    {
        return actentryMapper.selectActentryByActentryId(actentryId);
    }

    /**
     * 查询活动报名列表
     * 
     * @param actentry 活动报名
     * @return 活动报名
     */
    @Override
    public List<Actentry> selectActentryList(Actentry actentry)
    {
        return actentryMapper.selectActentryList(actentry);
    }

    /**
     * 新增活动报名
     * 
     * @param actentry 活动报名
     * @return 结果
     */
    @Override
    public int insertActentry(Actentry actentry)
    {
        return actentryMapper.insertActentry(actentry);
    }

    /**
     * 修改活动报名
     * 
     * @param actentry 活动报名
     * @return 结果
     */
    @Override
    public int updateActentry(Actentry actentry)
    {
        return actentryMapper.updateActentry(actentry);
    }

    /**
     * 批量删除活动报名
     * 
     * @param actentryIds 需要删除的活动报名主键
     * @return 结果
     */
    @Override
    public int deleteActentryByActentryIds(String actentryIds)
    {
        return actentryMapper.deleteActentryByActentryIds(Convert.toStrArray(actentryIds));
    }

    /**
     * 删除活动报名信息
     * 
     * @param actentryId 活动报名主键
     * @return 结果
     */
    @Override
    public int deleteActentryByActentryId(Long actentryId)
    {
        return actentryMapper.deleteActentryByActentryId(actentryId);
    }
}
